2008-05-29 Tor Lillqvist <tml@novell.com>
Bug 535526 - updateiconcache.c: using open/close without prototype
* gtk/updateiconcache.c: Include <io.h> if _MSC_VER. Also, use
g_utime() instead of utime() for UTF-8 pathname support on Windows
when available.
svn path=/trunk/; revision=20238
+2008-05-29 Tor Lillqvist <tml@novell.com>
+
+ Bug 535526 - updateiconcache.c: using open/close without prototype
+
+ * gtk/updateiconcache.c: Include <io.h> if _MSC_VER. Also, use
+ g_utime() instead of utime() for UTF-8 pathname support on Windows
+ when available.
+
2008-05-29 Jan Arne Petersen <jpetersen@jpetersen.org>
Bug 56355 – GtkLabel - Not all changes propagate correctly
#endif
#include <errno.h>
#ifdef _MSC_VER
+#include <io.h>
#include <sys/utime.h>
#else
#include <utime.h>
utime_buf.actime = path_stat.st_atime;
utime_buf.modtime = cache_stat.st_mtime;
+#if GLIB_CHECK_VERSION (2, 17, 1)
+ g_utime (path, &utime_buf);
+#else
utime (path, &utime_buf);
-
+#endif
+
if (!quiet)
g_printerr (_("Cache file created successfully.\n"));
}